package com.aifund.app.controller;

import com.aifund.app.entity.form.sysCoinAccount.SystemCoinAccountVo;
import com.aifund.app.service.SystemCoinAccountService;
import com.aifund.common.result.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 系统虚拟货币账号
 */
@RequestMapping("/api/systemCoinAccount")
@RestController
@Api(tags = "系统交易所账号")
public class SystemCoinAccount {

    @Autowired
    SystemCoinAccountService systemCoinAccountService;

    /**
     * 获取所有
     * @return
     */
    @GetMapping("/getAll")
    @ApiOperation("获取所有")
    public ResultBody<SystemCoinAccountVo> getAll(){
        List<SystemCoinAccountVo> all = systemCoinAccountService.getAll();
        return ResultBody.success(all);
    }




}
